package com.share.example.sbh.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Slf4j
@Controller
public class IndexController {
    @RequestMapping(value = "/")
    public String root() {
        return "index";
    }


    @RequestMapping(value = "/index")
    public String index() {
        return "index";
    }

    @RequestMapping(value = "/redis/toHtml")
    public String redisIndex() {
        return "redis/redis"; // html或者其他静态页面的名称
    }
}
